import Router from "sme-router";
import listInit from "../controller/listView.js";
import registerInit from "../controller/registerView.js";
import loginInit from "../controller/loginView.js";
var router = new Router("app");

router.route("/list", function (req, res, next) {
  listInit(res, req.body);
});
router.route("/login", function (req, res, next) {
  loginInit(res);
});
router.route("/register", function (req, res, next) {
  registerInit(res);
});

export default router;
